home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-12-14 | 3.1 KB | 109 lines |
- ###########################
- # Linux Makefile for FUDGIT
- ###########################
- #
- # macro definitions
- # Linker flags
- LDFLAGS = -lm -lreadline -ltermcap -Lreadline -lreadline
- # Final compiling flags
- FCFLAGS = $(OPT)
- # The following is for Linux 0.99pl4
- CFLAGS = $(OPT) -DNOMALLINFO -DNORINT -DNOTRUNC \
- -DNOGAMMA -DNOCBRT -DVOID_SIGHANDLER -Werror -Wall
- # READLINE CFLAGS for Linux
- READLINE = OTH_CFLAGS="-D_POSIX_VERSION=199009L -DVOID_SIGHANDLER $(VI_MODE)"
-
- # You should not need to edit anything below that line
- OBJECTS = mathparse.o fudgit.o alloc.o setshow.o vgetargp.o plot.o \
- fits.o fit.o svdfit.o medfit.o help.o mrqmin.o \
- command.o code.o math.o lexi.o init.o fft.o macro.o minit.o \
- spline.o readline2.o chd.o if.o strings.o extramath.o
-
- # The default shell
- SHELL = /bin/sh
- # Default compiler
- CC = cc
- YFLAGS = -d
- DATE = `cat ../Date`
- VERSION = `cat ../Version`
-
- all: ../fudgit
-
- ../fudgit: $(OBJECTS) fudgit.h setshow.h readline/libreadline.a
- $(CC) $(FCFLAGS) -o ../fudgit $(OBJECTS) $(LDFLAGS)
-
- math.tab.h: y.tab.h
- cat y.tab.h | sed s/yy/Ft_mathyy/g > math.tab.h
-
- y.tab.h: mathparse.o
-
- readline/libreadline.a:
- (cd readline; make CC="$(CC)" $(READLINE) )
-
- chd.o : chd.c fudgit.h head.h
-
- code.o : code.c symbol.h code.h math.tab.h fudgit.h head.h
- $(CC) -c $(CFLAGS) $(POP) code.c
-
- command.o : command.c symbol.h code.h macro.h math.tab.h fudgit.h setshow.h \
- functions.h help.h command.h readline/history.h head.h install.dummy.c
-
- fft.o : fft.c symbol.h code.h math.tab.h fudgit.h setshow.h functions.h dalloca.h \
- head.h
-
- fit.o : fit.c head.h
-
- fits.o : fits.c symbol.h code.h math.tab.h fudgit.h setshow.h functions.h head.h
-
- fudgit.o : fudgit.c fudgit.h macro.h head.h setshow.h functions.h
- $(CC) $(CFLAGS) -DDATE="\"$(DATE)\"" -DVERSION="\"$(VERSION)\"" -c fudgit.c
-
- help.o : help.c help.h fudgit.h command.h help.c
- $(CC) $(CFLAGS) -DHELPFILE="\"$(LIBDIR)/fudgit.help\"" -c help.c
-
- if.o : if.c fudgit.h head.h
-
- init.o : init.c fudgit.h symbol.h code.h math.tab.h head.h
-
- install.o : install.c dld/dl/dl.h
-
- install.dummy.o : install.dummy.c
-
- lexi.o : lexi.c symbol.h code.h math.tab.h fudgit.h head.h
- $(CC) $(OPT) -c lexi.c
-
- macro.o : macro.c fudgit.h macro.h setshow.h functions.h readline/history.h \
- head.h symbol.h code.h math.tab.h
-
- math.o : math.c fudgit.h head.h symbol.h
-
- mathparse.o : symbol.h code.h parse.y
- yacc $(YFLAGS) parse.y
- cat y.tab.c | sed s/yy/Ft_mathyy/g > mathparse.c
- rm y.tab.c
- $(CC) $(OPT) -c mathparse.c
-
- medfit.o : medfit.c dalloca.h head.h
-
- minit.o : minit.c fudgit.h setshow.h functions.h macro.h head.h
-
- mrqmin.o : mrqmin.c dalloca.h head.h
-
- plot.o : plot.c fudgit.h setshow.h functions.h macro.h head.h command.h
-
- readline2.o : readline2.c readline/readline.h readline/keymaps.h readline/chardefs.h \
- readline/history.h fudgit.h command.h macro.h head.h
-
- setshow.o : setshow.c fudgit.h symbol.h macro.h code.h math.tab.h functions.h \
- head.h
-
- spline.o : spline.c fudgit.h dalloca.h head.h
-
- strings.o : strings.c fudgit.h head.h
-
- strstr.o : strstr.c
-
- svdfit.o : svdfit.c dalloca.h head.h
-
- vgetargp.o : vgetargp.c fudgit.h macro.h symbol.h code.h math.tab.h head.h
-